<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Members  extends CI_Model {

    protected $tableName;

    function __construct() {
        parent::__construct();
        $this->tableName = 'tbuser';
        $this->load->database();
    }

    function getAll() {
        $query = $this->db->get($this->tableName);
        return $query->result();
    }
    function add_user($array) {
   /*     $data=array(
            'proup_id'=>0,
    'username'=>$this->input->post('username'),
    'name'=>$this->input->post('name'),
    'email'=>$this->input->post('email'),
    'password'=>md5($this->input->post('password'))
  );
  $this->db->insert($this->tableName,$data);
    * *
    */
        $this->db->insert($this->tableName,$array);
    }
     function general()
     {
	    $data['name']   = 'Name';
	    $data['username']= 'Username';
	    $data['password']  ='Password';
	                            
	    $data['email']      = 'Email';
	    $data['con-password']     = 'Con-password';
	    

	    return $data;  
	  }

}

?>
